package com.example.dw.dto;

import lombok.Data;

import jakarta.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 课程收藏操作DTO
 * @author system
 * @since 2024-01-01
 */
@Data
public class CourseFavoriteDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 用户ID
     */
    private Integer userid;

    /**
     * 课程ID
     */
    @NotNull(message = "课程ID不能为空")
    private Integer courseid;

    /**
     * 操作类型 (0-收藏 1-取消收藏)
     */
    private Integer action;
} 